<#macro toolbar toolbarArr optionArr>
	<div id="tb" style="padding:5px;height:auto">
		<div style="margin-bottom:5px">
			<#list toolbarArr as toolbar>
				<a id="${toolbar[0]}" href="#" class="easyui-linkbutton" iconCls="${toolbar[1]}" plain="true" onclick="${toolbar[2]}">${toolbar[3]}</a>
			</#list>
		</div>
	</div>
	
	<div>
		<#list optionArr as option>
			<#if (option['type'] == 'input')>
				${option['label']}:<input class="easyui-textbox" id="${option['id']}" data-options="prompt:'${option['prompt']}'"/>
			<#elseif (option['type'] == 'select')>
				${option['label']}:<select class="easyui-combobox" id="${option['id']}" ><#list option['optionArr'] as option><option value="${option['value']}">${option['name']}</option></#list></select>
			</#if>
			
		</#list>
		<#if (optionArr?size > 0)>
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="getData()">查询</a>
		</#if>
	</div>
</#macro>